<?php
$arr = array('name'=>'testing','tuoi'=>10);
echo serialize($arr);
echo "-------------------------------";
$str = serialize($arr);
$arrs = unserialize($str);
var_dump($arrs);
?>